package com.har.modules.web.entity;

import javax.validation.constraints.Size;

/**
 * 企业或者员工共用实体
 *
 * @author maorui
 *
 */
public class UserOrCompanyEntity {
    /**
     * 主键id
     */
    private Long id;
    /**
     * 用户名/企业账号
     */
    private String username;
    /**
     *真实姓名
     */
    @Size(min = 2,max = 20,message = "真实姓名请输入2-20位以内字符")
    private String realname;
    /**
     *新手机号
     */
    private String newMobile;
    /**
     *旧手机号
     */
    private String oldMobile;
    /**
     * 就职企业/企业全称
     */
    @Size(min = 1,max = 20,message = "企业名称请输入20位以内字符")
    private String companyName;
    /**
     * 新密码
     */
    private String newPassword;
    /**
     * 原密码
     */
    private String oldPassword;
    /**
     * 身份证号
     */
    private String idCard;

    /**
     * 营业执照号
     */
    @Size(min = 1,max = 20,message = "营业执照号请输入20位以内字符")
    private String businessLicenseNo;
    /**
     * 企业联系人
     */
    @Size(min = 1,max = 20,message = "企业联系人请输入20位以内字符")
    private String legalPerson;
    /**
     * 企业地址
     */
    @Size(min = 1,max = 50,message = "企业地址请输入50位以内字符")
    private String companyAddress;

    /**
     * 原手机验证码
     */
    private String oldCode;

    /**
     * 新手机验证码
     */
    private String newCode;
    /**
     *
     */
    private String openId;
    /**
     * 解绑验证码
     */
    private String untieCode;
    /**
     * 解绑微信手机号
     *
     */
    private String mobile;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getNewMobile() {
        return newMobile;
    }

    public void setNewMobile(String newMobile) {
        this.newMobile = newMobile;
    }

    public String getOldMobile() {
        return oldMobile;
    }

    public void setOldMobile(String oldMobile) {
        this.oldMobile = oldMobile;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getBusinessLicenseNo() {
        return businessLicenseNo;
    }

    public void setBusinessLicenseNo(String businessLicenseNo) {
        this.businessLicenseNo = businessLicenseNo;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getOldCode() {
        return oldCode;
    }

    public void setOldCode(String oldCode) {
        this.oldCode = oldCode;
    }

    public String getNewCode() {
        return newCode;
    }

    public void setNewCode(String newCode) {
        this.newCode = newCode;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUntieCode() {
        return untieCode;
    }

    public void setUntieCode(String untieCode) {
        this.untieCode = untieCode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
}
